feat: add /speckit.amend command for post-implementation amendments#1612
feat: add /speckit.amend command for post-implementation amendments#1612pankaj-modi18 wants to merge 4 commits intogithub:mainfrom
Conversation
Introduces a new command that enables targeted spec amendments after implementation is complete. When edge cases, missing scenarios, or behavioral corrections are discovered post-implementation, this command cascades the change through spec → tests → code → traceability without requiring a full re-run of the specify/plan/tasks/implement pipeline. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
There was a problem hiding this comment.
Pull request overview
This PR adds a new /speckit.amend command to handle post-implementation amendments to feature specifications. It fills a workflow gap where edge cases or behavioral corrections discovered after implementation currently require either manual spec editing (breaking the spec-first principle) or unnecessarily re-running the full pipeline.
Changes:
- Adds new command file
templates/commands/amend.mdthat implements a targeted micro-cycle for post-implementation spec amendments - The command cascades amendments through spec → tests → implementation while maintaining spec-first principles and minimal blast radius
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
For new commands please use the extensions mechanism as described at https://github.com/github/spec-kit/tree/main/extensions |
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
mnriem
left a comment
There was a problem hiding this comment.
Thank you for these changes, note however that community extensions should be hosted in a GitHub repository of your own. This way you have the flexibility to update and revision at your own pace. If you need more details, let me now.
intake: rehome upstream github#1612 (/speckit.amend) to active baseline
Summary
Adds a new
/speckit.amendcommand that enables targeted spec amendments after implementation is complete. This fills a gap in the current workflow where discovering a missing edge case post-implementation requires either manual edits (breaking spec-first principle) or re-running the full pipeline unnecessarily.Problem
The current spec-kit workflow is linear:
This works well for initial development. But after implementation, two common scenarios have no dedicated workflow:
Today, users must either:
/speckit.clarify+/speckit.tasks+/speckit.implement(overkill for a single scenario)Solution
/speckit.amendis a targeted micro-cycle that cascades a single amendment through all artifacts:Design Principles
How It Fits the Workflow
Command Patterns Followed
description,handoffs,scriptscheck-prerequisites.sh --json --require-tasks --include-tasks(same as/speckit.implementand/speckit.analyze)## User Input/## Outlinebody structure{SCRIPT}and{ARGS}placeholders for multi-agent compatibility/speckit.analyzefor post-amendment consistency checkAI Disclosure
This PR was developed collaboratively with Claude Opus 4.6. The command was designed through iterative discussion about BDD (Behavior-Driven Development) integration with spec-driven development, specifically around how to handle post-implementation edge case discovery. The author has reviewed, tested the design against existing spec-kit command patterns, and understands the full implementation.
Test Plan
specify initto ensure the command is picked up and distributed to agents/speckit.amendon a project that has completed/speckit.implement/speckit.analyzeworks after amendment/speckit.clarify